#pragma once

#include "ti_msp_dl_config.h"
#include "Oled.h"
#include "Jy61p.h"
#include "Adc.h"
#include "Lib.h"

extern uint8_t g_current_mode;
//函数定义

/*************一级菜单************/

static int ModeSelect_UI(void);

/*************二级菜单************/

static int ModeSelect_UI(void); 
static int GyroMenu_UI(void); 
static int Battery_UI(void); 
static int Settings_UI(void);

/*************三级菜单************/

static void ModeRun_UI(int mode);
static void AngleData_UI(void);
static void GyroData_UI(void); 
static void AccData_UI(void);

/*************核心函数************/

void Menu_Navigation(void);
void reverse_menu_item(int x, int y, int width, int height);
int OLED_Pu(void);